package com.foreknow.homework2;

public class Hero extends ActionCharacter implements CanFly,CanSwim{
    String name;
    public void Hero(String name){
        this.name = name;
    }
    @Override
    public void fight(String emp) {
        System.out.println(name );
    }

    @Override
    public void speak(String s) {

    }

    @Override
    public void fly() {

    }

    @Override
    public void swim() {

    }
}
